import config from './config.js'
import { request } from './http.js'
// 请求方式
const m_pos = 'POST'
const m_put = 'PUT'
const m_del = 'DELETE'
const m_get = 'GET'

const head = config.baseUrl

let chainLevel = (params) => request(head + '/api/chainLevel', params , m_get)
let GetopenidByCode = (params) => request(head + '/api/GetopenidByCode', params , m_get)
let CheckUserByOpenid = (params) => request(head + '/api/CheckUserByOpenid', params , m_get)
let AddWxappUser = (params) => request(head + '/api/AddWxappUser', params , m_pos)
const myIndustrychain=(params) => request(head +"/api/GetUserOrPlatformChain", params,m_get)
const getPlatormChain=(params) => request(head +"/api/getPlatormChain", params,m_get)
const myIndustrychain1=(params) => request(head +"/api/GetUserOrPlatformBigChain", params,m_get)
const getChainDataNum=(params) => request(head +"/api/GetChainDataNum", params , m_get)
const companylist=(params) => request(head +"/api/GetCompanyList", params,m_get)
const chain_com_count=(params) => request(head +"/api/GetCompanyNumOnChain", params,m_get)
const getMap=(params) => request(head +"/api/GetMapJsonByCode", params,m_get)
const chain_city_map=(params) => request(head +"/api/GetCompayOrParkNumOnMap", params,m_get)
const city=(params) => request(head +"/api/GetCity", params,m_get)
const GetChildrenCity=(params) => request(head +"/api/GetChildrenCity", params,m_get)
const GetChildrenLabelArray=(params) => request(head +"/api/GetChildrenLabelArray", params,m_get)
const CompayOrParkNumOnCityMap=(params) => request(head +"/api/CompayOrParkNumOnCityMap", params,m_get)
const localprojects={
  getList:(params)=> request(head +"/api/GetLocalprojectsList",params,m_get),
  del:(params)=> request(head +"/api/LocalprojectsDel",params,m_pos),
  updateLocalprojectsStatus:(params)=> request(head +"/api/UpdateLocalprojectsStatus",params,m_pos),
  localprojectsEdit:(params)=> request(head +"/api/LocalprojectsEdit",params,m_pos),
  getLocalprojectsDetail:(params)=> request(head +"/api/GetLocalprojectsDetail",params,m_get),
  getLocalProjectsMap:(params)=> request(head +"/api/getLocalProjectsMap",params,m_get),
}
const parklist=(params) => request(head +"/api/GetParkList", params,m_get) 
const GetParkImg=(params) => request(head +"/api/GetParkImg", params,m_get) 
const GetParkHonor=(params) => request(head +"/api/GetParkHonor", params,m_get) 
const getparkdetail=(params) => request(head +"/api/getparkdetail", params,m_get) 
const GetChainDistTwoByCityId=(params) => request(head +"/api/GetChainDistTwoByCityId", params,m_get) 
const GetChainDistByParkId=(params) => request(head +"/api/GetChainDistByParkId", params,m_get) 
const GetChainDistByCityId=(params) => request(head +"/api/GetChainDistByCityId", params,m_get) 
const GetChainDistTwoByParkId=(params) => request(head +"/api/GetChainDistTwoByParkId", params,m_get) 

const GetCityImg=(params) => request(head +"/api/GetCityImg", params,m_get) 
const GetCityHonor=(params) => request(head +"/api/GetCityHonor", params,m_get) 

const NeedsSubmit=(params) => request(head +"/api/NeedsSubmit", params,m_pos) 
const GetNeedsList=(params) => request(head +"/api/GetNeedsList", params,m_get) 
const GetNeedsDetail=(params) => request(head +"/api/GetNeedsDetail", params,m_get)  
const GetSuCityInfo=(params) => request(head +"/api/GetSuCityInfo", params,m_get)  
const GetSuCitysList=(params) => request(head +"/api/GetSuCitysList", params,m_get)   
const UpdateUser=(params) => request(head +"/api/UpdateUser", params,m_pos)   
const GetUseInfo=(params) => request(head +"/api/GetUseInfo", params,m_get)   

const gz={
	AttendAddOrCancel:(params)=> request(head +"/api/AttendAddOrCancel",params,m_pos),
	CheckAttend:(params)=> request(head +"/api/CheckAttend",params,m_get),
	getList:(params)=> request(head +"/api/GetAttendList",params,m_get), 
	getReadList:(params)=> request(head +"/api/getReadList",params,m_get), 
}


const companyDetail=(params) => request(head+"/api/GetCompanyDetail", params,m_get)
const ShareAdd=(params) => request(head+"/api/ShareAdd", params,m_pos)

const pl={
	CommentAdd:(params)=> request(head +"/api/CommentAdd",params,m_pos),
	CommentDel:(params)=> request(head +"/api/CommentDel",params,m_pos),
	getList:(params)=> request(head +"/api/GetCommentList",params,m_get),
}
const policy={
  getList:(params)=> request(head +"/api/GetPolicyList",params,m_get),
  detail:(params)=> request(head +"/api/GetPolicyDetail",params,m_get),
  type:(params)=> request(head +"/api/GetPolicyTypeList",params,m_get),
  GetPolicyDetail:(params)=> request(head +"/api/GetPolicyDetail",params,m_get),
}

const hbApi = {
	CreateProjectQrcode:(params)=> request(head +"/api/CreateProjectQrcode",params,m_get),
	
}
const hy = {
	MeetingPost:(params)=> request(head +"/api/MeetingPost",params,m_pos),
	GetMeetingList:(params)=> request(head +"/api/GetMeetingList",params,m_get),
	GetMeetingDetail:(params)=> request(head +"/api/GetMeetingDetail",params,m_get),
	GetMeetingMembers:(params)=> request(head +"/api/GetMeetingMembers",params,m_get),
	MeetingSign:(params)=> request(head +"/api/MeetingSign",params,m_pos),
	CheckMeetingSign:(params)=> request(head +"/api/CheckMeetingSign",params,m_get),
	CancleMeetingSign:(params)=> request(head +"/api/CancleMeetingSign",params,m_get),
	GetMeetingDelete:(params)=> request(head +"/api/GetMeetingDelete",params,m_get),
	UploadMeetingImage:(params)=> request(head +"/api/UploadMeetingImage",params,m_pos),
	GetMeetingImageList:(params)=> request(head +"/api/GetMeetingImageList",params,m_get),
	DeleteMeetingImage:(params)=> request(head +"/api/DeleteMeetingImage",params,m_get),
	GetMeetingSignDetail:(params)=> request(head +"/api/GetMeetingSignDetail",params,m_get),
	MeetingCheck:(params)=> request(head +"/api/MeetingCheck",params,m_pos),
	GetMeetingTotal:(params)=> request(head +"/api/GetMeetingTotal",params,m_get),
	GetModuleType:(params)=> request(head +"/api/GetModuleType",params,m_get),
	GetMeetingMembersTotal:(params)=> request(head +"/api/GetMeetingMembersTotal",params,m_get),
}
const xx = {
	GetMessagesList:(params)=> request(head +"/api/GetMessagesList",params,m_get),
	GetMessagesTotal:(params)=> request(head +"/api/GetMessagesTotal",params,m_get),
	UpdateMessages:(params)=> request(head +"/api/UpdateMessages",params,m_get),
	MessagesDel:(params)=> request(head +"/api/MessagesDel",params,m_get),
}

const news = {
	GetNewsTypeList:(params)=> request(head +"/api/GetBusinessTypeList",params,m_get),
	GetNewsList:(params)=> request(head +"/api/GetBusinessNewsList",params,m_get),
	GetNewsDetail:(params)=> request(head +"/api/GetBusinessNewsDetail",params,m_get),
	BusinessNewsShowFlag:(params)=> request(head +"/api/BusinessNewsShowFlag",params,m_get),
}

const news1 = {
	GetNewsTypeList:(params)=> request(head +"/api/GetInvestGuideTypeList",params,m_get),
	GetNewsList:(params)=> request(head +"/api/GetInvestGuideNewsList",params,m_get),
	GetNewsDetail:(params)=> request(head +"/api/GetInvestGuideNewsDetail",params,m_get),
	BusinessNewsShowFlag:(params)=> request(head +"/api/BusinessNewsShowFlag",params,m_get),
}
const news2 = {
	GetNewsTypeList:(params)=> request(head +"/api/GetLocalSummaryTypeList",params,m_get),
	GetNewsList:(params)=> request(head +"/api/GetLocalSummaryNewsList",params,m_get),
	GetNewsDetail:(params)=> request(head +"/api/GetLocalSummaryNewsDetail",params,m_get),
	BusinessNewsShowFlag:(params)=> request(head +"/api/BusinessNewsShowFlag",params,m_get),
}
let	CreateQrcode = (params)=> request(head +"/api/CreateQrcode",params,m_get)
let	GetMainNavs = (params)=> request(head +"/api/GetMainNavs",params,m_get)
let	GetCityInfoByLatLng = (params)=> request(head +"/api/GetCityInfoByLatLng",params,m_get)
let	GetIndustryChain = (params)=> request(head +"/api/GetIndustryChain",params,m_get)
let GetIndustryInfo=(params)=> request(head +"/api/GetIndustry",params,m_get)
let GetBusinessclueList=(params)=> request(head +"/api/GetBusinessclueList",params,m_get)

let label=(params) => request(head +"/api/GetCompanyLabel", params, m_get)
let GetProfession=(params) => request(head +"/api/GetProfession", params, m_get)
let GetCompanyTotal=(params) => request(head +"/api/GetCompanyTotal", params, m_get)

let tax = {
	BillSubmit:(params)=> request(head +"/api/BillSubmit",params,m_pos),
	GetBillDetail:(params)=> request(head +"/api/GetBillDetail",params,m_get),
	GetBillList:(params)=> request(head +"/api/GetBillList",params,m_get),
}
let club = {
	ClueSubmit:(params)=> request(head +"/api/ClueSubmit",params,m_pos),
	UpdateClueStatus:(params)=> request(head +"/api/UpdateClueStatus",params,m_pos),
	GetClueList:(params)=> request(head +"/api/GetClueList",params,m_get),
	GetClueDetail:(params)=> request(head +"/api/GetClueDetail",params,m_get),
	GeCluetBuyUsers:(params)=> request(head +"/api/GeCluetBuyUsers",params,m_get),
}
let CreateOrder = (params) => request(head +"/api/CreateOrder",params,m_get) 
let CreateVipOrder = (params) => request(head +"/api/CreateVipOrder",params,m_get) 
let FeedbackPost = (params) => request(head +"/api/FeedbackPost",params,m_pos) 

let GetOwnChainDetailById = (params) => request(head +"/api/GetOwnChainDetailById",params,m_get)  
let GetVipMenu = (params) => request(head +"/api/GetVipMenu",params,m_get)   
let GetInvestCityMap = (params) => request(head +"/api/GetInvestCityMap",params,m_get)   
let compayorparknumonareamap = (params) => request(head +"/api/compayorparknumonareamap",params,m_get)   
let GetReportList = (params) => request(head +"/api/GetReportList",params,m_get)   
let GetClusterchainInfo = (params) => request(head +"/api/GetClusterchainInfo",params,m_get)   
let GetClusterInfo = (params) => request(head +"/api/GetClusterInfo",params,m_get)   
let GetRechargeMenu = (params) => request(head +"/api/GetRechargeMenu",params,m_get)   
let RechargeCreate = (params) => request(head +"/api/RechargeCreate",params,m_pos)   
let comDetail = {
	GetCompanyCustom:(params) => request(head +"/api/GetCompanyCustom",params,m_get),  
	GetCompanySupply:(params) => request(head +"/api/GetCompanySupply",params,m_get)   
}
let GetOpinionsList = (params) => request(head +"/api/GetOpinionsList",params,m_get)   
let GetCompanyZhaopinHistory = (params) => request(head +"/api/GetCompanyZhaopinHistory",params,m_get)   

let ApplycomreportAdd = (params) => request(head +"/api/ApplycomreportAdd",params,m_pos)   
let GetMessageType = (params) => request(head +"/api/GetMessageType",params,m_get)   
let GetOrderList = (params) => request(head +"/api/GetOrderList",params,m_get)   
let GetVersionStatus = (params) => request(head +"/api/GetVersionStatus",params,m_get)   
let GetAreaChain = (params) => request(head +"/api/GetAreaChain",params,m_get)   
let GetAreaChainlist = (params) => request(head +"/api/GetAreaChainlist",params,m_get)   	
let GetAreaChainMap = (params) => request(head +"/api/GetAreaChainMap",params,m_get)   	
let getHttpDataFromWeb = (params) => request(head +"/api/getHttpDataFromWeb",params,m_get)   	
let indexInfo = (params) => request(head +"/api/GetPlatformInfo",params,m_get)   
	
let citySj = {
	getCityPeopleList:(params) => request(head +"/api/getCityPeopleList",params,m_get),
	getCityMainChainValuesList:(params) => request(head +"/api/getCityMainChainValuesList",params,m_get),
	getCityGdpList:(params) => request(head +"/api/getCityGdpList",params,m_get),
	getCityThreeChainValuesList:(params) => request(head +"/api/getCityThreeChainValuesList",params,m_get),
	getCityChainValuesList:(params) => request(head +"/api/getCityChainValuesList",params,m_get),
}

let GetMainNavsImgs = (params) => request(head +"/api/GetMainNavsImgs",params,m_get)   
let getResourceTech = (params) => request(head +"/api/getResourceTech",params,m_get)  
 
let getWxappUserPhoneByCode = (params) => request(head +"/api/getWxappUserPhoneByCode",params,m_get)   

let hkroom = {
	getList:(params) => request(head +"/api/getmeetingroomlist",params,m_get),
	getArea:(params) => request(head +"/api/getMeetingRoomMap",params,m_get),
	detail:(params) => request(head +"/api/GetMeetingRoomDetail",params,m_get),
}


let jinrong = {
	getFinanceType:(params) => request(head +"/api/getFinanceType",params,m_get),
	getFinanceOrganList:(params) => request(head +"/api/getFinanceOrganList",params,m_get),
	getFinanceOrganDetail:(params) => request(head +"/api/getFinanceOrganDetail",params,m_get),
	getFinanceProductList:(params) => request(head +"/api/getFinanceProductList",params,m_get),
	getFinanceProductDetail:(params) => request(head +"/api/getFinanceProductDetail",params,m_get),
	getServiceType:(params) => request(head +"/api/getServiceType",params,m_get),
	getServiceList:(params) => request(head +"/api/getServiceList",params,m_get),
	getServiceDetail:(params) => request(head +"/api/getServiceDetail",params,m_get),
	getServiceProductType:(params) => request(head +"/api/getServiceProductType",params,m_get),
	getServiceProductList:(params) => request(head +"/api/getServiceProductList",params,m_get),
	getServiceProductDetail:(params) => request(head +"/api/getServiceProductDetail",params,m_get),
	// 金融产品分类
	// 金融机构list
	// 金融机构详情
	// 金融产品list
	// 金融产品详情
	// 企业服务分类
	// 企业服务list
	// 企业服务详情
	// 企业产品分类
	// 企业产品lsit
	// 企业产品detail
}
let GetUserInfoByUserId = (params) => request(head +"/api/GetUserInfoByUserId",params,m_get)   
let shareCard = (params) => request(head +"/api/shareCard",params,m_get)   
let visiteCard = (params) => request(head +"/api/visiteCard",params,m_get)   
let getCardSt = (params) => request(head +"/api/getCardSt",params,m_get)   
const login=(params) => request(head +"/api/login",params,m_pos)   

let hhr = {
	getList:(params) => request(head +"/api/getPartnersList",params,m_get),
	detail:(params) => request(head +"/api/getPartnersDetail",params,m_get),
	toAdd:(params) => request(head +"/api/applyPartners",params,m_pos),
}

const video ={
  getList:(params)=> request(head +"/api/GetVideosList",params,m_get),
}

const tzzs ={
  getGanzhouNeedsSubmit:(params)=> request(head +"/api/getGanzhouNeedsSubmit",params,m_pos)
}

const getGanzhouNeedsList=(params) => request(head +"/api/getGanzhouNeedsList",params,m_get)   

const getSendSys=(params) => request(head +"/api/getSendSys",params,m_get)   
const GetBusinessclueDetail=(params) => request(head +"/api/GetBusinessclueDetail",params,m_get)   
const sysUserUseLogs=(params) => request(head +"/api/sysUserUseLogs",params,m_get)   
const checkUserUse=(params) => request(head +"/api/checkUserUse",params,m_get)   
const getUserCurrentNums=(params) => request(head +"/api/getUserCurrentNums",params,m_get)   

export {
	getUserCurrentNums,
	checkUserUse,
	sysUserUseLogs,
	GetBusinessclueDetail,
	chainLevel, 
	getSendSys,
	getGanzhouNeedsList,
	tzzs,
	video,
	hhr,
	login,
	shareCard,
	visiteCard,
	getCardSt,
	GetUserInfoByUserId,
	jinrong,
	hkroom,
	getWxappUserPhoneByCode,
	getResourceTech,
	GetMainNavsImgs,
	citySj,
	indexInfo,
	getHttpDataFromWeb,
	GetUseInfo,
	GetopenidByCode,
	CheckUserByOpenid,
	AddWxappUser,
	myIndustrychain,
	getPlatormChain,
	myIndustrychain1,
	getChainDataNum,
	companylist,
	chain_com_count,
	getMap,
	chain_city_map,
	city,
	GetChildrenCity,
	GetChildrenLabelArray,
	CompayOrParkNumOnCityMap,
	localprojects,
	parklist,
	getparkdetail,
	NeedsSubmit,
	GetNeedsList,
	GetNeedsDetail,
	GetSuCityInfo,
	GetSuCitysList,
	UpdateUser,
	gz,
	companyDetail,
	ShareAdd,
	pl,
	policy,
	hbApi,
	GetChainDistTwoByCityId,
	GetChainDistTwoByParkId,
	GetChainDistByParkId,
	GetChainDistByCityId,
	hy,
	xx,
	news,
	news1,
	news2,
	GetCityInfoByLatLng,
	GetIndustryChain,
	CreateQrcode,
	GetMainNavs,
	GetIndustryInfo,
	GetBusinessclueList,
	label,
	GetProfession,
	GetParkImg,
	GetParkHonor,
	GetCityImg,
	GetCityHonor,
	GetCompanyTotal,
	tax,
	club,
	CreateOrder,
	FeedbackPost,
	GetOwnChainDetailById,
	GetVipMenu,
	CreateVipOrder,
	GetInvestCityMap,
	compayorparknumonareamap,
	GetReportList,
	GetClusterchainInfo,
	GetClusterInfo,
	GetRechargeMenu,
	RechargeCreate,
	comDetail,
	ApplycomreportAdd,
	GetMessageType,
	GetOrderList,
	GetOpinionsList,
	GetCompanyZhaopinHistory,
	GetVersionStatus,
	GetAreaChainlist,
	GetAreaChain,
	GetAreaChainMap
}